home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 November / SGI Freeware 1999 November - Disc 1.iso / dist / fw_expect.idb / usr / freeware / catman / u_man / cat1 / dislocate.Z / dislocate
Text File  |  1999-01-26  |  5KB  |  132 lines

  1.  
  2.  
  3.  
  4.      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((7777 OOOOccccttttoooobbbbeeeerrrr 1111999999993333))))      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       Dislocate - disconnect and reconnect processes
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       ddddiiiissssllllooooccccaaaatttteeee [ _p_r_o_g_r_a_m _a_r_g_s... ]
  13.  
  14.      IIIINNNNTTTTRRRROOOODDDDUUUUCCCCTTTTIIIIOOOONNNN
  15.       DDDDiiiissssllllooooccccaaaatttteeee allows processes to    be disconnected    and
  16.       reconnected to the terminal.    Possible uses:
  17.  
  18.            +o   You can disconnect a    process    from a terminal    at
  19.            work    and reconnect from home, to continue working.
  20.  
  21.            +o   After having    your line be dropped due to noise, you
  22.            can get back    to your    process    without    having to
  23.            restart it from scratch.
  24.  
  25.            +o   If you have a problem that you would    like to    show
  26.            someone, you    can set    up the scenario    at your    own
  27.            terminal, disconnect, walk down the hall, and
  28.            reconnect on    another    terminal.
  29.  
  30.            +o   If you are in the middle of a great game (or
  31.            whatever) that does not allow you to    save, and
  32.            someone else    kicks you off the terminal, you    can
  33.            disconnect, and reconnect later.
  34.  
  35.      UUUUSSSSAAAAGGGGEEEE
  36.       When run with    no arguments, DDDDiiiissssllllooooccccaaaatttteeee    tells you about    your
  37.       disconnected processes and lets you reconnect    to one.
  38.       Otherwise, DDDDiiiissssllllooooccccaaaatttteeee runs the    named program along with any
  39.       arguments.
  40.  
  41.       By default, ^] is an escape that lets    you talk to DDDDiiiissssllllooooccccaaaatttteeee
  42.       itself.  At that point, you can disconnect (by pressing ^D)
  43.       or suspend DDDDiiiissssllllooooccccaaaatttteeee (by pressing ^Z).
  44.  
  45.       Any Tcl or Expect command is also acceptable at this point.
  46.       For example, to insert the contents of a the file /etc/motd
  47.       as if    you had    typed it, say:
  48.  
  49.            send -i $out [exec cat /etc/motd]
  50.  
  51.  
  52.       To send the numbers 1    to 100 in response to the prompt "next
  53.       #", say:
  54.  
  55.            for {set    i 0} {$i<100} {incr i} {
  56.            expect -i $in "ne"xt #"
  57.            }   send    -i $out    "$i
  58.  
  59.  
  60.  
  61.  
  62.      Page 1                        (printed 12/23/98)
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((7777 OOOOccccttttoooobbbbeeeerrrr 1111999999993333))))      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))
  70.  
  71.  
  72.  
  73.       Scripts can also be prepared and sourced in so that you
  74.       don't    have to    type them on the spot.
  75.  
  76.       DDDDiiiissssllllooooccccaaaatttteeee is actually    just a simple EEEExxxxppppeeeecccctttt script.  Feel
  77.       free to make it do what you want it to do or just use    EEEExxxxppppeeeecccctttt
  78.       directly, without going through DDDDiiiissssllllooooccccaaaatttteeee.  DDDDiiiissssllllooooccccaaaatttteeee
  79.       understands a    few special arguments.    These should appear
  80.       before any program name.  Each should    be separated by
  81.       whitespace.  If the arguments    themselves takes arguments,
  82.       these    should also be separated by whitespace.
  83.  
  84.       The ----eeeessssccccaaaappppeeee flag sets    the escape to whatever follows.     The
  85.       default escape is ^].
  86.  
  87.      CCCCAAAAVVVVEEEEAAAATTTTSSSS
  88.       This program was written by the author as an exercise    to
  89.       show that communicating with disconnected processes is easy.
  90.       There    are many features that could be    added, but that    is not
  91.       the intent of    this program.
  92.  
  93.  
  94.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  95.       TTTTccccllll(3), lllliiiibbbbeeeexxxxppppeeeecccctttt(3)
  96.       "_E_x_p_l_o_r_i_n_g _E_x_p_e_c_t: _A _T_c_l-_B_a_s_e_d _T_o_o_l_k_i_t _f_o_r _A_u_t_o_m_a_t_i_n_g
  97.       _I_n_t_e_r_a_c_t_i_v_e _P_r_o_g_r_a_m_s"    by Don Libes, O'Reilly and Associates,
  98.       January 1995.
  99.  
  100.      AAAAUUUUTTTTHHHHOOOORRRR
  101.       Don Libes, National Institute    of Standards and Technology
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.      Page 2                        (printed 12/23/98)
  129.  
  130.  
  131.  
  132.